package com.feng.modules.demo.dao.impl;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.feng.modules.core.dao.impl.BaseDao;
import com.feng.modules.demo.dao.ITestDao;
public class TestDaoImpl extends BaseDao implements ITestDao{
	Log log=LogFactory.getLog(this.getClass());
	@Override
	public String test() {
		List list=new ArrayList();
		try{
		String sql="select sysdate from dual";
		list=this.getJdbcTemplate().queryForList(sql);
		}catch(Exception e){
			log.debug(e+"------------");
			e.printStackTrace();
		}
		return list.get(0).toString();
	}
}
